package com.hr.emp.param;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;


@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_user")
@ApiModel(value="SysUser对象", description="")
@NoArgsConstructor
public class EmpVo extends Model {

    private Integer id;
    //0是管理员用户 1 是普通用户
    private Integer type;
    //账号
    private String userName;
    //员工姓名
    private String empName;

    //密码
    private String password;

    //手机号
    private String phone;
    //0 生效 1不生效
    private Integer state;
    private Integer gender;

    //邮箱
    private String email;
    //编号
    private String workCode;
    //部门id
    private Integer deptId;
    //入职时间
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date entryTime;

    private String remark;
    //创建时间
    private Date createTime;
    //更新时间
    private Date updateTime;
    //部门名称
    private String deptName;
}
